<html>
<head>
<title>firstworks   Programming with Rudiments using the inetsocketclient class</title>
<link href="../css/styles.css" rel="stylesheet">
</head>
<body>

<span class="heading">Programming with Rudiments using the inetsocketclient class</span><br><br>

<p>Here's the code for a client that can communicate with the <a href="inetsocketserver.html">inetsocketserver program</a>.  This client sends a string to the server, reads what the server sends back and prints it out.</p>

<img src="../images/traffic_cone.png"/>

<p>Coming soon...</p>

<blockquote class="code">

<script type='text/javascript'>
<!--

-->
</script>
<font face="monospace">
<font color="#2e8b57"><b>int</b></font>&nbsp;main(<font color="#2e8b57"><b>int</b></font>&nbsp;argc,&nbsp;<font color="#2e8b57"><b>const</b></font>&nbsp;<font color="#2e8b57"><b>char</b></font>&nbsp;**argv) {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#0000ff">//&nbsp;</font><span style="background-color: #ffff00"><font color="#0000ff">FIXME</font></span><font color="#0000ff">: example...</font><br>
}<br>
</font>
<!-- vim: set foldmethod=manual : -->
</blockquote>

<p>Inet sockets allow clients and servers to communicate across a network.  Unix sockets can be used to allow clients and servers on the same machine to communicate.  Though clients and servers on the same machine could communicate over an inet socket using localhost, unix sockets are much faster and use fewer system resources.  See the <a href="unixsocketserver.html">unixsocketserver</a> and <a href="unixsocketclient.html">unixsocketclient</a> examples.</p>

</body>
</html>
